﻿    <!-- Modal -->
    <div class="modal fade" id="EditModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">修改图书信息</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" id="edit-index"/>

                    <form class="form-horizontal" id="edit-book-form">
                        <input type="text" class="hidden" name="editBookId" id="edit-book-id"/>
                        <div class="form-group">
                          <label class="col-sm-2 control-label">书名：</label>
                          <div class="col-sm-10">
                            <input type="text" class="form-control" name="editBookName" id="edit-book-name" />
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 control-label">作者：</label>
                          <div class="col-sm-10">
                            <input type="text" class="form-control" name="editBookAuthor" id="edit-book-author" />
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 control-label">出版社：</label>
                          <div class="col-sm-10">
                            <input type="text" class="form-control" name="editBookPress" id="edit-book-press" />
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 control-label">ISBN：</label>
                          <div class="col-sm-10">
                            <input type="text" class="form-control" name="editBookISBN" id="edit-book-isbn" />
                          </div>
                        </div>
                        <div class="form-group col-md-6">
                          <label class="col-sm-5 control-label">价格(元)：</label>
                          <div class="col-sm-7">
                            <input type="text" class="form-control" name="editBookPrice" id="edit-book-price" />
                          </div>
                        </div>
                        
                        <div class="form-group col-md-6">
                          <label class="col-sm-5 control-label">出版时间：</label>
                          <div class="col-sm-7">
                            <input type="text" class="form-control" name="editBookPYM" id="edit-book-PYM" />
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 control-label">封面图片(小于4M)：</label>
                          <div class="col-sm-10">
                            <image class="image-responsive" src="" name="bookPname" id="edit-book-pname-preview" />
                            <input id="edit-book-pname" type="file" name="file1" accept="image/*" capture="camera">
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 control-label">建议分类：</label>
                          <div class="col-sm-10">
                            <div id="edit-category-checkbox-list"></div>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 control-label">简介：</label>
                          <div class="col-sm-10">
                            <textarea class="form-control" rows=10 name="editBookDesc" id="edit-book-desc"></textarea>
                          </div>
                        </div>

                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭</button>
                    <button type="button" class="btn btn-primary" id="update-book">
                        确认修改</button>
                </div>
            </div>
        </div>
    </div>